package com.epam.training.concurrency.first.task3;

class TestCilcularBuffer {

	public static void main(String args[]) {
		new TestCilcularBuffer();
	}

	private TestCilcularBuffer() {
		CircularBuffer buffer = new CircularBuffer(5);
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();
		new Writer(buffer).start();

		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
		new Reader(buffer).start();
	}
}
